# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Eric Bélanger <eric@archlinux.org>

pkgname=memtest86+
pkgver=5.31b
pkgrel=1
pkgdesc='Advanced memory diagnostic tool'
url='https://www.memtest.org'
arch=('any')
license=('GPL2')
source=(https://www.memtest.org/download/${pkgver}/${pkgname}-${pkgver}.bin.gz
        60_memtest86+)
b2sums=('d171e2c8ee53fef79d37f9f014ab0bb4c796c26c1eb4ae3c0a5ac2635277480890c147988937646e2d32cdbd1dcc4c38551eb140f69f574ed4ec04b638f9ab59'
        'ca607b4483b592f7f0c64893f72b0b57b1dd91ebf2c107e65f0a1979a7234d09221dd2149c73d1c6a41ffea331c3cb633babed4400316fc953528272016b15d8')

package() {
  install -Dm 644 "${srcdir}/${pkgname}-${pkgver}.bin" "${pkgdir}/boot/memtest86+/memtest.bin"
  install -Dm 755 "${srcdir}/60_memtest86+" "${pkgdir}/etc/grub.d/60_memtest86+"
}

# vim: ts=2 sw=2 et:
